package de.tud.binpacking.heuristic.improvement;

import de.tud.binpacking.data.Solution;
import de.tud.binpacking.instance.Instance;

public abstract class AImprovementHeuristic{
	
	protected Instance instance;

	public AImprovementHeuristic(Instance instance) {
		if (instance == null) {
			throw new NullPointerException("Instance/Solution cannot be null");
		}
		this.instance = instance;
	}
	
	public abstract String toString();
	
	public abstract Solution improveSolution(Solution solution);

}
